package net.chenpu.gae.proxy;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public class IO {
	public static void copy(InputStream in, OutputStream out)
			throws IOException {
		byte[] data = new byte[1024];
		int len = 0;
		while ((len = in.read(data)) > 0)
			out.write(data, 0, len);
	}
}
